home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d16 / nodee1a.arc / SOURCE.ARC / NODDLGS.H < prev    next >
C/C++ Source or Header  |  1991-09-20  |  2KB  |  92 lines

  1. #if !defined( __NODDLGS_H )
  2. #define __NODDLGS_H
  3.  
  4. //---------------------------------------------------------------------
  5. //
  6. //  TODODLGS.H
  7. //
  8. //      Copyright (c) 1991 by Borland International
  9. //      All Rights Reserved.
  10. //
  11. //  defines the following classes, which handle all the dialog boxes for
  12. //  the Todo program.
  13. //
  14. //      AboutBox
  15. //
  16. //      FileBox     - provides a basic dialog for selecting a file.
  17. //
  18. //      EditBox     - provides a dialog box for editing an entry in the
  19. //                    Todo list.
  20. //
  21. //---------------------------------------------------------------------
  22.  
  23. #if !defined( __WINDOWS_H )
  24. #include <Windows.h>
  25. #endif
  26.  
  27. #if !defined( __DIR_H )
  28. #include <Dir.h>
  29. #endif
  30.  
  31. #if !defined( __STRSTREA_H )
  32. #include <strstrea.h>
  33. #endif
  34.  
  35. #if !defined( __CLASSWIN_H )
  36. #include "ClassWin.h"
  37. #endif
  38.  
  39.  
  40. /*---------------------------------------------------------------------
  41.  
  42.     class AboutBox
  43.  
  44.             draws and manages the About dialog.
  45. */
  46.  
  47.     class AboutBox : public ModalDialog
  48.     {
  49.     public:
  50.  
  51.         AboutBox( HWND );
  52.  
  53.     private:
  54.  
  55.         virtual LPSTR getDialogName();
  56.         virtual BOOL dispatch( HWND, WORD, WORD, LONG );
  57.  
  58.     };
  59.  
  60.  
  61.     inline AboutBox::AboutBox(HWND hOwner) : ModalDialog(hOwner)
  62.     {
  63.     }
  64.  
  65. /*---------------------------------------------------------------------
  66.  
  67.     class WhoWroteBox
  68.  
  69.             draws and manages the About dialog.
  70. */
  71.  
  72.  
  73.     class WhoWroteBox : public ModalDialog
  74.     {
  75.     public:
  76.  
  77.         WhoWroteBox( HWND );
  78.  
  79.     private:
  80.  
  81.         virtual LPSTR getDialogName();
  82.         virtual BOOL dispatch( HWND, WORD, WORD, LONG );
  83.  
  84.     };
  85.  
  86.     inline WhoWroteBox::WhoWroteBox(HWND hOwner) : ModalDialog(hOwner)
  87.     {
  88.     }
  89.  
  90.     #endif  // __NODDLGS_H
  91.  
  92.